package com.ctgu.admin.system.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 提交时的判空工具类
 */
@Data
public class InformationValid implements Serializable {
    @NotNull(message = "消息对象不能为空")
    private Long userID;
    @NotEmpty(message = "消息内容不能为空")
    private String content;
}